pp108 : Object Layout of Custom Classes

Object Layout of Custom Classes

This topic describes the object layout of custom classes.

The object layout is an XML representation of a custom class. It is similar to the XML structure present in a SOAP message. The following is the syntax of the object layout.

<ClassName derived="PackageName::ClassName">
    <AttributeName changeability="frozen | addOnly | changeable" required="true | false">PrimitiveType | DerivedType</AttributeName>
    <!--Repeating AttributeNames-->
    <NestedClassName derived="PackageName::ClassName" derivedRelation="PackageName::ClassName">
        <AttributeName changeability="frozen | addOnly | changeable"
            required="true | false" size="">PrimitiveType | DerivedType</AttributeName>
        <!-- deep nesting of classes is also possible -->
    </NestedClassName>
    <!--Repeating NestedClassName s-->
</ClassName>


The object layout comprises the following elements:

  • The root node is the name of the class.
  • Each immediate child is an attribute in the class, and the name of the child node is the name of the attribute.
  • The value of an attribute is the name of a primitive (string, i2, i8, r4, r8, dateTime, cy, boolean).

    You can view the object layout only after you create the custom class using the WS-AppServer Package editor.

Related concepts

Derived Custom Class

Related tasks

Creating a Query-based Custom Class
Creating a Custom Class
Viewing the Object Layout of a Class
Viewing and Editing the XML Structure of a WS-AppServer Model